package com.jack.charging.order.feign;

import com.jack.charging.common.pojo.JsonResult;
import com.jack.charging.common.pojo.param.GunStatusUpdateParam;
import com.jack.charging.common.pojo.vo.StationInfoVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author Jack
 * @date 2025/2/10 14:19
 * @see
 * @since
 */
@FeignClient(name = "deviceService")
public interface DeviceClient {
    @GetMapping(value = "/device/station/info/{gunId}")
    public JsonResult<StationInfoVO> getStationInfo(@PathVariable("gunId")Integer gunId);
    @PostMapping(value = "/device/station/gun/status/update")
    public JsonResult<Boolean> updateGunStatus(@RequestBody GunStatusUpdateParam param);
}
